package com.tian.factory.simple;

import com.tian.factory.simple.product.IProduct;

/**
 * @author tiansongtao, Email:tiansongtao@up366.com
 * @date 2020/12/24 16:25
 */
public class SimpleMain {
    public static void main(String[] args) {
        IProduct product = SimpleFactory.createProduct(SimpleFactory.SIMPLE_CREATE_ONE);
        product.showName();
        IProduct product2 = SimpleFactory.createProduct(SimpleFactory.SIMPLE_CREATE_TWO);
        product2.showName();
        IProduct product3 = SimpleFactory.createProduct(SimpleFactory.SIMPLE_CREATE_THREE);
        product3.showName();
    }
}
